package threads;

import java.util.List;

import model.PlaylistRecord;

public class RecordPlayer implements Runnable {
	
	private List<PlaylistRecord> records;
	
	public RecordPlayer(List<PlaylistRecord> records) {
		this.records = records;
	}
	
	@Override
	public void run() {
		while(true) {
			for(PlaylistRecord rec : records) {
				rec.play();
			}
		}
	}
	
}


